const express = require("express");
const router = express.Router();
router.get('/jsonp/users',(req,res)=>{
    const data = {name:'jack',age:20}
    res.send(` const res = ${ JSON.stringify(data) };`)
})

router.get('/cookie',(req,res)=>{
    // Set-Cookie: count=100; Max-Age=0; Path=/; Expires=Fri, 08 Sep 2023 08:36:15 GMT
    res.cookie('count','100',{maxAge:10000,httpOnly:true});
    res.send({a:1})
})
module.exports = router;
